<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */


use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use backend\controllers\CategoryController;
use common\models\category\Category;
use common\models\setting\Setting;
?>
<?php 
                    //导航栏目信息
                    $data = Category::find()->where(['status' => 1, 'parent_id' => 0])->asArray()->all();
					
					//版权信息
	                $copyright = '';
					try 
					{	
					$copyright = Setting::findOne(['code'=>'copyright'])->value; 
					} 
					catch(ErrorException $e)
					{ 
					
					}
					
					//备案信息
					$beian = '';
					try
					{
						$beian = Setting::findOne(['code'=>'beian'])->value;
					}
					catch (ErrorException $e)
					{
					
					}
					//微信二维码
					$dizhiimg = '';
					try
					{
						$dizhiimg = Setting::findOne(['code'=>'dizhiimg'])->value;
					}
					catch (ErrorException $e)
					{
					
					}
					//微信二维码
					$wb_chat = '';
					try
					{
						$wb_chat = Setting::findOne(['code'=>'wb_chat'])->value;
					}
					catch (ErrorException $e)
					{
					
					}
?>

<div id="Foter">
         <div class="F_box">
              <div class="lt">
                   <ul>
                      <li><a href="<?= yii\helpers\Url::to(['site/index']);?>">首页</a></li>
               
					  <?php foreach($data as $vo){ $newurl = '/'.$vo['type']; ?>
					   <li>|</li>
						  <li>
						      <a href="<?= yii\helpers\Url::to([$newurl, 'id' => $vo['id']]); ?>"><?= $vo['name'];?></a>
						  </li>
					  <?php } ?>
                      
                   </ul>
                   <p style="margin-bottom:5px; clear:both"><?= $copyright;?></p>
                   <p><?= $beian; ?></p>
              </div>
              <div class="rt">
                   <div>                       
                       <img src="/upload/<?= $dizhiimg;?>" />
                   </div>
                   <div style="float:right;">                       
                       <img src="/upload/<?= $wb_chat;?>" />
                   </div>
              </div>
              <div style="clear:both"></div>
         </div>
    </div>